home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / sbasic.jar / text / sbasic / common / 03020302.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  1.5 KB  |  22 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Loc Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03020302"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.   
  10.   
  11.   <p class="P1"/>
  12.   <p class="Head1"><a name="loc"/><help:link Id="66389" xmlns:help="http://openoffice.org/2000/help">Loc Function [Runtime]</help:link></p>
  13.   <p class="Paragraph">Returns the current position in an open file.<a name="ende"/></p>
  14.   <p class="Paragraph"><span class="T1">Syntax</span>:</p>
  15.   <p class="Paragraph">Loc (FileNumber) <help:key-word value="Loc" tag="kw66389_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  16.   <p class="Paragraph"><span class="T1">Return value</span>:</p>
  17.   <p class="Paragraph">Long</p>
  18.   <p class="Paragraph"><span class="T1">Parameter</span>:</p>
  19.   <p class="Paragraph">FileNumber: Any numeric expression that contains the file number set by the Open statement for the respective file.</p>
  20.   <p class="Paragraph">If the Loc function is used for an open random access file, it returns the number of the last read or written record.</p>
  21.   <p class="Paragraph">For a sequential file, the Loc function returns the position in a file divided by 128. For binary files, the position of the last read or written byte is returned.</p>
  22.  </body></html>